<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
  <title>销售</title>
	<link rel="stylesheet" href="../../layui/css/layui.css" media="all">
  <style>
    
  </style>
</head>
<body>
	<div>
	<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
		<legend>退货单列表</legend>
	</fieldset>
	<form class="layui-form" action="../../salesReturn/findDrugName.action" method="post"  >
	 
	 <!--   <div class="layui-form-item">
	    <label class="layui-form-label">药品名称</label>
	    <div class="layui-input-block">
	      <input type="text" name="drugName" lay-verify="required" maxlength="10" placeholder="请输入药品名称" autocomplete="off" class="layui-input" style="width:280px;">
	    </div>
	   </div> -->
	  
	  <div class="layui-form-item">
			    <label class="layui-form-label">药品名称2</label>
			    <div class="layui-input-block" style="width:200px;">
			      <select name="drugName"  id="drugName"  lay-verify="required" lay-search="" style="display:block " >
			          <option value="0">请选择</option>
			          
			        </select>
			    </div>
	</div>
	
	
	  <div class="layui-form-item">
	    <label class="layui-form-label">数量</label>
	    <div class="layui-input-block">
	      <input type="number" name="mxQuantity" lay-verify="required" max="999" min="1"  placeholder="请输入药品数量" autocomplete="off" class="layui-input" style="width:280px;">
	    </div>
	  </div>
	 
	  
	  <div class="layui-form-item">
	    <label class="layui-form-label">时间</label>
	    <div class="layui-input-block">
	      <input type="date" name="sellDate" lay-verify="required"  autocomplete="off" class="layui-input" style="width:280px;">
	    </div>
	  </div>
	 
	  <div class="layui-form-item">
	    <div class="layui-input-block">
	      <input type="submit" class="layui-btn" lay-submit="" lay-filter="roleAdd" value="提交">
	      <button id="closeAdd" type="reset" class="layui-btn layui-btn-primary" >取消</button>
	    </div>
	  </div>
	</form>
	</div>
<script type="text/html" id="barDemo">
  <a class="layui-btn layui-btn-xs" lay-event="edit" id="imgUpdate">修改</a>
  <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
</script>

<script src="../../res/mln/jquery-1.10.2.js"></script>
<script src="../../res/mln/layui-xtree.js"></script>
<script src="../../res/mln/layui.js"></script>
<script src="../../res/js/base.js"></script>
<script>
	 $(function(){
		 var url = "../../salesReturn/findAllDrug.action";
		 $.ajax({
			 url:url,
			 data:null,
			 success:function(msg){
				 for(var i=0;i<msg.length;i++){
					 $("#drugName").append("<option valu="+msg[i].drugId+">"+msg[i].drugName+"</option>");
					 
				 }
				 form.render();
			 },
			 dataType:"JSON"
		 
		 });
	 })
</script>
</body>
</html>